
/*
 * @Author: 于建霞
 * @Date: 2020-11-We 10:11:35
 * @Last Modified by:   于建霞
 * @Last Modified time: 2020-11-We 10:11:35
 * 
 * * @description:  旅客改签弹框-航班列表
 */

import React, { useState, useCallback, useRef, useEffect } from 'react';
import { Button } from 'antd';
import ProTable from '@ant-design/pro-table';
import { useRequest } from '@umijs/hooks';

const FlightList = (props) => {

    let tableListDataSource = [
        { outUserNo: "1", a: "11111", aa: "11111", aaa: "11111", aaaa: "11111", s: "11111", ss: "11111", sss: "11111", ssss: "11111", w: "11111", ww: "111111" },
        { outUserNo: "2", a: "11111", aa: "11111", aaa: "11111", aaaa: "11111", s: "11111", ss: "11111", sss: "11111", ssss: "11111", w: "11111", ww: "111111" },
        { outUserNo: "3", a: "11111", aa: "11111", aaa: "11111", aaaa: "11111", s: "11111", ss: "11111", sss: "11111", ssss: "11111", w: "11111", ww: "111111" },
        { outUserNo: "4", a: "11111", aa: "11111", aaa: "11111", aaaa: "11111", s: "11111", ss: "11111", sss: "11111", ssss: "11111", w: "11111", ww: "111111" },
        { outUserNo: "5", a: "11111", aa: "11111", aaa: "11111", aaaa: "11111", s: "11111", ss: "11111", sss: "11111", ssss: "11111", w: "11111", ww: "111111" },
        { outUserNo: "6", a: "11111", aa: "11111", aaa: "11111", aaaa: "11111", s: "11111", ss: "11111", sss: "11111", ssss: "11111", w: "11111", ww: "111111" },
        { outUserNo: "7", a: "11111", aa: "11111", aaa: "11111", aaaa: "11111", s: "11111", ss: "11111", sss: "11111", ssss: "11111", w: "11111", ww: "111111" },
        { outUserNo: "8", a: "11111", aa: "11111", aaa: "11111", aaaa: "11111", s: "11111", ss: "11111", sss: "11111", ssss: "11111", w: "11111", ww: "111111" },
        { outUserNo: "9", a: "11111", aa: "11111", aaa: "11111", aaaa: "11111", s: "11111", ss: "11111", sss: "11111", ssss: "11111", w: "11111", ww: "111111" },
        { outUserNo: "01", a: "11111", aa: "11111", aaa: "11111", aaaa: "11111", s: "11111", ss: "11111", sss: "11111", ssss: "11111", w: "11111", ww: "111111" },
    ]
    // 改签旅客列表
    const columns = [
        {
            dataIndex: 'a',
            width: "100px",
            title: 'PNR',
        },
        {
            dataIndex: 'aa',
            width: "100px",
            title: '航班状态',
        }, {
            dataIndex: 'aaa',
            width: "100px",
            title: '航班日期',
        },
        {
            dataIndex: 'aaaa',
            width: "100px",
            title: '航班号',
        }, {
            dataIndex: 's',
            width: "100px",
            title: '起飞时间',
        },
        {
            dataIndex: 'ss',
            width: "100px",
            title: '始发地',
        }, {
            dataIndex: 'sss',
            title: '经停地',
            width: "100px",
        },
        {
            dataIndex: 'ssss',
            width: "100px",
            title: '目的地',
        }, {
            dataIndex: 'w',
            width: "100px",
            title: '旅客姓名',
        }, {
            dataIndex: 'ww',
            width: "100px",
            title: '旅客类型',
        }, {
            dataIndex: 'outUserNo',
            width: "100px",
            title: '舱位等级',
        },
    ];


    return (
        <ProTable
            columns={columns}
            dataSource={tableListDataSource}
            width="100%"
            scroll={{ x: "100%", y: 300 }}
            rowKey="outUserNo"
            pagination={false}
            toolBarRender={false}
            search={false}
        />
    )
}

export default FlightList;